﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace OrderWindow
{
    public partial class Form4 : Form
    {
        public Form4(List<Order.Order> orders)
        {
            InitializeComponent();
            bindingSource1.DataSource = orders;
            bindingSource2.DataSource = orders;
        }

        private void bindingSource1_CurrentChanged(object sender, EventArgs e)
        {
            bindingSource2.DataSource = bindingSource2.Current;
        }
    }
}
